package cn.org.alexander.execption;

import cn.org.alexander.entity.response.ResponseResult;
import cn.org.alexander.entity.response.ResultCode;

/**
 * @author Alexander
 * @date 2022/5/21
 */
public class ExceptionCast {

    public static void cast(ResultCode resultCode) {
        throw new CustomException(resultCode);
    }

    public static void cast(String errorMsg) {
        throw new CustomException(ResponseResult.newErrorInstance(errorMsg));
    }

}

